package com.polaris.server.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotNull;

/**
 * @author CNPolaris
 * @version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)

public class PassengerQueryParam {

    @NotNull
    private Long id;
    @NotNull
    private String passengerId;
    @NotNull
    private Integer dist;
    @NotNull
    private Integer birth;
    @NotNull
    @Range(max = 1,min = 0)
    private Integer gender;
}
